import { domainService } from '~/config/server'
import { NetService } from '~/utils/net.service'
import { Inject, Debounce } from "~/core/decorator";


export class TelephoneCollectionService {
  @Inject(NetService)
  private netService: NetService

  public findAllValidQueues() { // 根据队列类型获取全部生效队列
    return this.netService.send({
      server: domainService.telephoneCollectionController.findAllValidQueues
    })
  }
  public findQueuesByQueueType() { // 根据队列类型获取自催队列
    return this.netService.send({
      server: domainService.telephoneCollectionController.findQueuesByQueueType
    })
  }
  public findQueueListByType(data) { // 根据队列类型获取自催队列(改-请求头入参)
    return this.netService.send({
      server: domainService.telephoneCollectionController.findQueueListByType,
      data
    })
  }
  public getQueueInfo(data) { // 查看队列信息
    return this.netService.send({
      server: domainService.telephoneCollectionController.getQueueInfo,
      data
    })
  }

  public getQueueInfoData(data, page) { // 查看队列信息
    return this.netService.send({
      server: domainService.telephoneCollectionController.getQueueInfo,
      data,
      page
    })
  }

  public telTransferCaseNext(data) { // 电催团队案件池转派下一步
    return this.netService.send({
      server: domainService.telephoneCollectionController.telTransferCaseNext,
      data,
      loading: true,
    })
  }
  public telTransferCaseConfirm(data) { // 电催团队案件池转派确定
    return this.netService.send({
      server: domainService.telephoneCollectionController.telTransferCaseConfirm,
      data,
      loading: true,
    })
  }
}
